package ar.uba.fi.taller2.cmmiassistant.frontend.renderers;

import java.net.URL;

import javax.swing.ImageIcon;

public class Renderer {


    public static final String baseImageURL = "/ar/uba/fi/taller2/cmmiassistant/frontend/images/";

    public static URL getImageURL(String name) {
    
    	return CmmiAssistantTreeCellRenderer.class.getResource(baseImageURL
    			+ name);
    }

    public static ImageIcon createImageIcon(String nombre) {
        
        return new ImageIcon(getImageURL(nombre));
    }

}